import 'dart:convert';

import 'package:flutter2/generated/json/base/json_field.dart';
import 'package:flutter2/generated/json/order_entity.g.dart';

export 'package:flutter2/generated/json/order_entity.g.dart';

@JsonSerializable()
class OrderEntity {
  @JSONField(name: "mannerno")
  String orderNo = '';
  @JSONField(name: "correspondacquiregrass")
  int orderId = 0;
  @JSONField(name: "creatureabsolutediffer")
  String extend = '';
  @JSONField(name: "printfifthreally")
  String name = '';
  @JSONField(name: "couplefeastattitude")
  int status = 0;
  String introducedelicateomelette = '';
  @JSONField(name: "clock")
  int loanAmount = 0;
  @JSONField(name: "oilstrugglesharpen")
  String appssid = '';
  @JSONField(name: "headlinesacrificewho")
  int userId = 0;
  @JSONField(name: "institutiondialogueheel")
  String loanTime = '';
  @JSONField(name: "pioneerregardlesspeasant")
  int period = 0;
  @JSONField(name: "lostresistdictionary")
  int overDays = 0;

  OrderEntity();

  factory OrderEntity.fromJson(Map<String, dynamic> json) => $OrderEntityFromJson(json);

  Map<String, dynamic> toJson() => $OrderEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
